{extend name="base" /}
{block name="body"}



<div class="am-padding am-padding-bottom-0">
	<strong class="am-text-primary am-text-lg">会员管理</strong> / <small>Member</small>
</div>

<div class="am-padding am-btn-toolbar">
	<div class="am-btn-group am-btn-group-xs">
		<a href="{:url('admin/member/index')}" class="am-btn am-btn-default"><span class="am-icon-plus"></span> 列表</a>
		<a href="{:url('admin/member/add')}" class="am-btn am-btn-default"><span class="am-icon-plus"></span> 新增</a>
	</div>
</div>

<div class="am-padding am-scrollable-horizontal">
	<table class="am-table am-table-bd am-table-striped am-text-nowrap admin-content-table">
		<thead>
			<tr>
				<th width="60">ID</th>
				<th></th>
				<th>用户名</th>
				<th>用户组</th>
				<th>状态</th>
				<th>最后登录时间</th>
				<th>最后登录IP</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
			{foreach name="member_list" item="vo"}
			<tr>
				<td class="am-text-middle">{$vo.id}</td>
				<td class="am-text-middle">
					<img {empty name="$vo.avatar"}src="/static/common/images/avatar.png"{else/}src="{$vo.avatar|get_thumb=###,200,200}"{/empty} class="am-img-thumbnail am-circle admin-avatar">
					{$vo.nickname}
				</td>
				<td class="am-text-middle">{$vo.username}</td>
				<td class="am-text-middle">{$vo.group->title}</td>
				<td class="am-text-middle">{$vo.status_text}</td>
				<td class="am-text-middle">{empty name="$vo.login_time"} -- {else/}{$vo.login_time|date='Y-m-d H:s'}{/empty}</td>
				<td class="am-text-middle">{$vo.login_ip}</td>
				<td class="am-text-middle">
					<div class="am-btn-toolbar">
						<div class="am-btn-group am-btn-group-xs">
							<a href="{:url('admin/member/edit',['id'=>$vo['id']])}" class="am-btn am-btn-default am-btn-xs am-text-secondary"><span class="am-icon-pencil-square-o"></span> 编辑</a>
							<a href="{:url('admin/member/delete',['id'=>$vo['id']])}" class="am-btn am-btn-default am-btn-xs am-text-danger am-hide-sm-only ajax-delete"><span class="am-icon-trash-o"></span> 删除</a>
						</div>
					</div>
				</td>
			</tr>
			{/foreach}
			

		</tbody>
	</table>
</div>



{/block}